package com.atguigu.cmn;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * zz: wzh
 * time 2022 09 04 15 36
 **/
@Repository
@FeignClient("service-cmn")
public interface DictFeignClient {

        @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
        public String getName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);
        //根据Value查讯
        @GetMapping("/admin/cmn/dict/getName/{value}")
        public String getName(@PathVariable("value") String value);
}
